package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.bo.warehouse.WarehouseQueryBo;
import com.cloudkinto.vo.warehouse.ChannelWarehouseVo;
import com.cloudkinto.vo.warehouse.CompanyWarehouseVo;
import com.cloudkinto.entity.WarehouseDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库表 Mapper 接口
 * </p>
 *
 * @author long
 * @since 2024-10-29
 */
public interface WarehouseDao extends BaseMapper<WarehouseDo> {

    List<ChannelWarehouseVo> getWarehouseList(Long channelId, Long tenantId);

    List<CompanyWarehouseVo> getWarehouseCompany(Long companyId, Long tenantId);

    List<WarehouseDo> getWarehouseCompanyDo(Long companyId, Long tenantId);


    List<CompanyWarehouseVo> getWarehouseListForBindAddress(Long channelId, Long tenantId);

    List<WarehouseDo> getListPage(@Param("page") IPage<WarehouseDo> page, @Param("bo") WarehouseQueryBo bo);

    List<WarehouseDo> getListPage(@Param("bo") WarehouseQueryBo bo);
}
